package com.tech.platform.cms.authz.common.context;

import com.tech.platform.cms.authz.common.model.LoginUserModel;

/**
 * @author shengqiang.wu
 * @date 2020/4/11/011 14:24
 * @desc
 */
public interface LoginContext {

    LoginUserModel getLoginUser();

    String getToken();

    boolean hasLogin();

    String getTenant();

    default boolean hasRole(){
        return true;
    }

    default boolean hasPermission(){
        return true;
    }
}
